package Adler;

import java.rmi.Remote;
import java.rmi.RemoteException;

/// Interface for sending Sparql Queries to Adler so that she can process
/// them and send back results. fixme: in the future this will extend Remote
/// so that external processes can access it.
public interface SparqlQuerier extends Remote
{
  /// Run a query against the specified project and retrieve the results in an RDF/XML blob.
  /// @param project The name of the project
  /// @param query the SPARQL query to run against the project.
  /// @return RDF/XML blob containing the Results of the query
  String Query(String project, String query) throws RemoteException;
 
  /// This method expose the ontology URL for our ontology
  String getOntology() throws RemoteException;
  
  /// FIXME: Add a Query that returns the result as a 'ResultSet' ?
}